<a href="{$portfolio->website_address}">{$portfolio->website_name}</a>

{if $portfolio->user_id == $currentUserID}
	
	{form remote='true'}
		{hidden name="id" value=$params->id}
		{hidden name="website_address" value=$portfolio->website_address}
		{hidden name="website_name" value=$portfolio->website_name}
		{hidden name="element" value="website"}
		{hidden name="ajaxAction" value=$params.ajaxAction}
		{if $params.ajaxAction == "edit"}
			<br />
			{submit value="Edit"}
		{else}
			<br />
			Name: {textbox name="website_name" value=$params.website_name}<br />
			Address: {textbox name="website_address" value=$params.website_address}<br />
			{submit value="Save"}
		{/if}
	{/form}
{/if}